<template>
	<view class="container page-message">
		<view class="module-list">
			<view class="item" v-for="(item, index) in list" :key="index">
				<view class="item-header">{{ item.date }}</view>
				<view class="item-content">
					<view class="item-title">{{ item.title }}</view>
					<view class="item-tips">{{ item.tips }}</view>
					<view class="item-footer">
						<view class="item-number">{{ item.number }}</view>
						<button class="item-button" type="default">查看详情</button>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			list: [
				{
					title: '您的订单已开始发货',
					tips: '甜美多肉大龙虾',
					number: '2020423198744',
					date: '2020-02-20 15:30',
				},
				{
					title: '您的订单已开始发货',
					tips: '甜美多肉大龙虾',
					number: '2020423198744',
					date: '2020-02-20 15:30',
				},
				{
					title: '您的订单已开始发货',
					tips: '甜美多肉大龙虾',
					number: '2020423198744',
					date: '2020-02-20 15:30',
				},
				{
					title: '您的订单已开始发货',
					tips: '甜美多肉大龙虾',
					number: '2020423198744',
					date: '2020-02-20 15:30',
				},
				{
					title: '您的订单已开始发货',
					tips: '甜美多肉大龙虾',
					number: '2020423198744',
					date: '2020-02-20 15:30',
				},
			],
		};
	},
	onLoad() {},
	methods: {},
};
</script>

<style lang="scss">
.page-message {
	background: #f5f5f5;
	padding: 0 0 24rpx;
	.item {
		padding: 20rpx 24rpx 0;
		.item-header {
			font-size: 24rpx;
			text-align: center;
			color: #999;
			margin: 0 0 20rpx;
		}
		.item-content {
			background: #fff;
			padding: 24rpx 24rpx 32rpx;
			border-radius: 4rpx;
		}
		.item-title {
			font-size: 28rpx;
			color: #000;
		}
		.item-tips {
			font-size: 24rpx;
			color: #888;
		}
		.item-number {
			font-size: 24rpx;
			color: #888;
		}
		.item-footer {
			display: flex;
			align-items: center;
			justify-content: space-between;
		}
		.item-button {
			font-size: 24rpx;
			margin: 0;
		}
	}
}
</style>
